@import './mixins.scss';
// @import url('//at.alicdn.com/t/font_624874_iq62sz2zwk4kj4i.css');
@font-face {
  font-family: 'blogicon';  /* project id 624874 */
  src: url('//at.alicdn.com/t/font_624874_iq62sz2zwk4kj4i.eot');
  src: url('//at.alicdn.com/t/font_624874_iq62sz2zwk4kj4i.eot?#iefix') format('embedded-opentype'),
  url('//at.alicdn.com/t/font_624874_iq62sz2zwk4kj4i.woff') format('woff'),
  url('//at.alicdn.com/t/font_624874_iq62sz2zwk4kj4i.ttf') format('truetype'),
  url('//at.alicdn.com/t/font_624874_iq62sz2zwk4kj4i.svg#blogicon') format('svg');
}
.blogicon{
  font-family:"blogicon" !important;
  font-size:16px;font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
*,
*:before,
*:after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  word-wrap: break-word;
  word-break: break-word;
}

html,
body {
  height: 100%;
  width: 100%;
  @include xsmall {
    height: auto;
  }
}

html,
body {
  margin: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  font-family: "HanHei SC", "PingHei", "PingFang SC", "STHeitiSC-Light", "Helvetica Neue", "Helvetica", "Arial", "Microsoft Yahei", "Hiragino Sans GB", "Helvetica Neue", "\5B8B\4F53";
  font-size: 16px;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f7f7f9;
}
textarea {
  display: block;
  resize: vertical;
  padding: 5px 7px;
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  outline: 0;
  font-size: 14px;
  color: #1f2d3d;
  background-color: #fff;
  background-image: none;
  border: 1px solid #e3e3e3;
  transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  resize: none;
  &.no-border {
    border: 1px solid transparent;
    padding-left: 0;
  }
  &:focus {
    border: 1px solid #00bff6;
    box-shadow: 0 0 6px rgba(0, 191, 246, .5);
    &.no-border {
      border: 1px solid transparent;
      box-shadow: none;
    }
  }
}
input[type="text"],
input[type="password"] {
  display: block;
  width: 100%;
  border: 1px solid #e3e3e3;
  background: #fff;
  line-height: 26px;
  color: #000;
  height: 40px;
  outline: 0;
  font-size: 14px;
  padding: 6px 12px;
  white-space: nowrap;
  word-break: keep-all;
  /* 不换行 */
  white-space: nowrap;
  /* 不换行 */
  transition: border-color .2s cubic-bezier(.645, .045, .355, 1);
  &.base-placeholder-input {
    padding-right: 40px;
  }
  &:focus {
    border: 1px solid #00bff6;
    box-shadow: 0 0 6px rgba(0, 191, 246, .5);
  }
  &.error_input {
    border: 1px solid #ff4a40;
    &:focus {
      border: 1px solid #ff4a40;
      box-shadow: none;
    }
  }
  &.error {
    border: 1px solid #ff4a40;
  }
}
.non-selectable {
  user-select: none !important
}

.scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.no-scroll {
  overflow: hidden !important
}

.clearfix:after {
  content: "\200B";
  display: block;
  height: 0;
  clear: both;
}

.clearfix {
  *zoom: 1;
}

a {
  color: #fff;
  text-decoration: none;
}

.container {
  max-width: 1320px;
  min-width: 320px;
  margin: 20px auto;
  text-align: left;
  position: relative;
  .content-wrap {
    width: 100%;
    float: left;
  }
  .content {
    margin-right: 340px;
    @include xsmall{
      margin-right:0;
    }
  }
  .sidebar {
    float: left;
    margin-left: -320px;
    width: 320px;
    position: relative;
    @include xsmall{
      display: none;
    }
  }
  .excerpt {
    background-color: #fff;
    padding: 20px 20px 20px 20px;
    margin-bottom: 1px;
    position: relative;
    border-left: solid 4px #fff;
    &.excerpt-img {
      padding-left: 240px;
    }
    .excerpt-img-box {
      float: left;
      width: 220px;
      margin-left: -240px;
      text-align: center;
      position: relative;
      overflow: hidden;
      display: table;
    }
    .excerpt-img-href {
      display: table-cell;
      vertical-align: middle;
      width: 220px;
      height: 150px;
      img {
        vertical-align: middle;
        margin: 0 auto;
        max-width: 220px;
        max-height: 150px;
      }
    }
    h2 {
      display: inline;
      font-size: 18px;
      line-height: 24px;
      font-weight: bold;
      a {
        color: #555;
      }
    }
    .label {
      display: inline-block;
      padding: 4px 6px 3px;
      font-size: 10.152px;
      line-height: 14px;
      color: #ffffff;
      vertical-align: baseline;
      white-space: nowrap;
      background: #997e43;
      margin-right: 5px;
      position: relative;
      top: -2px;
    }
    .note {
      color: #333;
      font-size: 14px;
      line-height: 24px;
      margin-bottom: 0;
    }
    &:hover {
      border-left: solid 4px #00bff6;
    }
  }
  .muted{
    margin-right:20px;
    i{
      margin-right:4px;
    }
  }
  .article-header {
    margin-bottom: 1px;
    padding: 2px 20px 12px;
    background-color: #fbfbfb;
    .article-title {
      color: #000;
    }
  }
  .pagination{
    padding: 20px;
    background-color: #fff;
    text-align: center;
    ul{
      display: inline-block;
      margin-left: 0;
      margin-bottom: 0;
      li{
        display: inline;
        line-height: 20px;
        margin-left:2px;
        margin-right:2px;
      }
    }
    a,span{
      background:#00bff6;
      padding-left:6px;
      padding-right:6px;
      margin-right:4px;
      color:#fff;
      &:last-child{
        margin-right: 0;
      }
    }
  }
  .article-introduction {
    padding: 2px 20px 12px;
    background-color: #fbfbfb;
    color: #333;
  }
  .article-content {
    position: relative;
    padding: 20px;
    background-color: #fff;
    white-space:normal;
    word-break: break-all;
    img{
      max-width: 100%;
      max-height:100%;
      width:auto;
      height:auto;
    }
    a{
      color:#00bff6;
    }
    pre{
      display: block;
      background:#e3e3e3;
      line-height:18px;
    }
    code{
      font-size:13px;
      word-break: normal;
      @include xsmall{
        word-break: break-all;
        white-space:normal;
      }
    }
  } //回复
  .respond {
    position: relative;
    background-color: #fff;
    .comt-title {
      overflow: hidden;
      padding: 12px 20px;
      background-color: #f7f7f7;
      border-bottom: 1px solid #eee;
    }
    .comt {
      padding: 20px;
      position: relative;
      .comt-ctrl {
        margin-top:10px;
        position: relative;
        overflow: hidden;
        text-align:right;
      }

      .comment-sumbit {
        color: #ffffff;
        background-color: #e0841d;
        display: block;
        padding: 6px 12px 4px;
        margin-bottom: 0;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        cursor: pointer;
        border: 0;
        border-radius: 0;
      }
    }
  }
}
.comment-box{
  position: fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.8);
  z-index:999;
  .comment-center{
    width:80%;
    max-width: 640px;
    background:#fff;
    position: absolute;
    min-height:20px;
    padding-top:20px;
    padding-bottom:20px;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    border-radius:10px;
    box-shadow: 0 0 0 0 grba(255,0,255,.6);
  }
}
.comment-model-title{
  position:relative;
  width:100%;
  height:26px;
  line-height:26px;
  color:#000;
  font-size:18px;
  padding-left:20px;
  padding-right:20px;
  font-weight: bold;
}
.comment-model-input-box{
  padding-left:20px;
  padding-right:20px;
  padding-top:10px;
  padding-bottom:10px;
}
.comment-model-user-btn{
  padding-top:10px;
  padding-bottom:10px;
  text-align:center;
  background:#00bff6;
  color:#fff;
  line-height:20px;
  margin-top:10px;
  cursor: pointer;
}
.post-comment-box{
  position: relative;
  background-color: #fff;
  h3{
    margin: 0;
    font-size: 14px;
    padding: 10px 20px;
    line-height: 14px;
    color: #999;
    font-weight: normal;
    border-bottom: dotted 1px #e6e6e6;
  }
  .commentlist{
    padding: 0 20px;
    ul{
      margin-left:0px;
      margin-right:0;
      margin-top:0;
      margin-bottom:0;
      list-style: none;
      padding:0;
      border-left: 1px solid #e3e3e3;
      li{
        margin:0;
        list-style: none;
        ul{
          margin-left:20px;
        }
        .comment-list-box-main{
          padding:10px;
          border-bottom:1px solid #e3e3e3;
        }
        .comment-list-box-main-content{
          font-size:16px;
        }
        .comment-list-box-main-name{
          div{
            float:left;
            margin-right:10px;
            font-size:14px;
          }
          .comment-reply-btn{
            padding-left:4px;
            padding-right:4px;
            background:#00bff6;
            color:#fff;
            cursor: pointer;
          }
        }
      }
    }
  }
}
.comment-fade-enter-active, .comment-fade-leave-active {
  transition: opacity .2s;
}
.comment-fade-enter, .comment-fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
.comment-slide-enter-active, .comment-slide-leave-active {
  transition: all .4s;
}
.comment-slide-enter, .comment-slide-leave-to /* .fade-leave-active below version 2.1.8 */ {
  margin-top:-20px;
}
